package com.jhh.pay.heli.constant;

/**
 * Created by zhangqi on 2017/11/29.
 */
public class Constant {

    public static final boolean isDebug = true;

    public static final int SUCCESS = 200;

    public static final int ERROR = 202;

    public static final int FAILD = 201;

    public static final String DAIFU = "daifu";

    public static final String DAIKOU = "daikou";

    public static final String SPLIT = "&";

    /**
     * MD5签名的类型  代付查询
     */
    public static final String MD5_TYPE_QUERY = "query";

    /**
     * MD5签名的类型 代付
     */
    public static final String MD5_TYPE_PAY = "pay";

    /**
     * MD5签名的类型  代扣查询
     */
    public static final String MD5_TYPE_QUERY_WITHHOLD = "withhold_query";

    public static final String MD5_TYPE_CALLBACK_WITHHOLD = "withhold_callback";

    /**
     * MD5签名的类型 代扣
     */
    public static final String MD5_TYPE_WITHHOLD = "withhold";

    /**
     * 证件类型
     */
    public static final String IDCARD_TYPE = "IDCARD";
    /**
     * 交易币种
     */
    public static final String CURRENCY_TYPE = "CNY";
    /**
     * 商品类别
     */
    public static final String GOODS_TYPE = "100001";
    /**
     * 终端类型
     */
    public static final String TERMINAL_TYPE = "IMEI";

    /**
     * MD5签名的后密钥 正式
     */
    public static final String MD5_PAY_KEY_PRO = "bbHRoeEIGCfP64ZDwqtZVT9k8lz0qj0C";
    public static final String MD5_PAY_KEY_DEV = "Vx977zHtKzoMkb3vZjxLzVvNHg1469cO";
    /**
     * MD5签名的后密钥 测试
     */
    public static final String MD5_PAY_KEY = isDebug?MD5_PAY_KEY_DEV:MD5_PAY_KEY_PRO;

    /**
     * MD5 代扣 正式
     */
    public static final String MD5_WITHHOLD_KEY_PRO = "pqMUH6gbbOCuWyZfGDXNHjDJ85w5Vgeq";
    public static final String MD5_WITHHOLD_KEY_DEV = "0gZ7jqe14jQO8VTF1g3jt8DrI7otP5eq";
    /**
     * MD5 代扣 测试
     */
    public static final String MD5_WITHHOLD_KEY = isDebug?MD5_WITHHOLD_KEY_DEV:MD5_WITHHOLD_KEY_PRO;
    /**
     * DES3 正式
     */
    public static final String DES3_WITHHOLD_KEY_PRO = "V0CsJJgq1n6CYx5lGvw2PLBW";
    public static final String DES3_WITHHOLD_KEY_DEV = "0EOFlN7EsRm7bo9OOdDvxcuI";

    public static final String DES3_WITHHOLD_KEY = isDebug?DES3_WITHHOLD_KEY_DEV:DES3_WITHHOLD_KEY_PRO;
    /**
     * RSA正式
     */
    public static final String RSA_PRIVATE_PRO = "MIICdwIBADANBgkqhkiG9w0BAQEFAASCAmEwggJdAgEAAoGBAOmjkrgCFkI/EUJT\n" +
            "lJtOjovs8VnAw8AQbtUh0RT8Wv8J21qr4qpk74KaZ+heKP7mRXl3dhdwxKKsZAO8\n" +
            "+qOaCS2BrORsqsSTX5MJ2koviC+IQvhne4dDt4XMLSc/KB4dhu68HsDjTTC0KqdF\n" +
            "LvfMnNHABvT8+1sJ87Z12sEZcZ3FAgMBAAECgYB3Xsd7lDVjK23aAXIP15clDq5R\n" +
            "ORfKbZry8hAtNLIZVCPqs59fh6qHg/RK2LEBaw1b/hkr6MXOh12iO0+jfvPofkvw\n" +
            "1Ck9hSybWQLxfS9JoSIV7TMRiadIe3RuuWKNpvVT/wp5l4F1CGseX0AWwgeixWV4\n" +
            "7tX0X/0hmb3Q1LV7AQJBAPVHG/GhtaHDB2VxJk6T+XL8I0iGzZL7TMhwscBCvwWM\n" +
            "6L9H66VX++K7KEKjWGznEyM0MNqfjaXk8v3fQ3qiWbUCQQDz2jbw8WAPC6UiktWm\n" +
            "SswdMxV4bjyDf5+3w5kziGExNuOcZV6pTp+Qkgg+KTnD2NDU2OUw1RCn6Dfm8AC8\n" +
            "VX3RAkEApp+k+xQ42GguGRqxxEW/+v4QVg/FjakL80qjZhGxxOqBnpgUHCHWKqOr\n" +
            "6QEga/LaTFsDKTGkv2L2M8K9C41I1QJAI4L7zUrZeldvzQElK/pojzgJQGiNV3kW\n" +
            "gWRywxZxUQF1VClPB8jzY9JgcO0ABI1mnBiaB+p/anRe77qz4LlygQJBALJf/psI\n" +
            "4IBH7HzaPAtXDyaz4Ea+Q+KNQrLcjgYffVVll+k9GStfydGEZAElJDb364JBOt4G\n" +
            "yTwkfi53e6kzsrs=";
    /**
     * RSA 测试
     */
    public static final String RSA_PRIVATE_DEV="MIICdQIBADANBgkqhkiG9w0BAQEFAASCAl8wggJbAgEAAoGBAM+PcQN9JmrYJ+sKwI9kmBLAsBS6HHDT2Sgkh8BYbyTKovSMQat1II6l42HhUH6lr7bXwnRUw8I4qrNBZjz4cWZBi+vgkSL/1f1M/erW27t61DobvpgDpZQTtmQ7IDsiLuY7C7We+WwaBcddnju74ij3FPWCpgYBHGwdv5wwzRxdAgMBAAECgYBAzSreiPsujm/gDQpTeneUGz6eKgDpJOr+gnEzlyiUFwPLT+LM0hOpFZepHnxQHhB/CFu4kCJSB/kbYAa4cGSOlPo8zBLCfNajClZMLaKMAIb+0TmYNAnVcadC/4fXibzAW0zRS2/OK4H7wWUVEYyC66m+ieBaH5Jt/72+e6aYTQJBAPjjhGanLk22ml8i5+MzN94RBQStbGNxI6xtBXoKEIB2W/INPddZ877e7tknh+fVvctTZlE4Q5V1TT2ZL4wzke8CQQDVfaE9Cbc+aeg3Mb+Ap64tCK4WTHhWzHySN7VGTLdeF41ZjqTrIS7SSQyZOPOt/lMfFgXO0EnSdCqL+aexXFJzAkBeHyxi5bZNDVEzyS+IbEYkZKtRKYRj1tV2z4PSsxuqeRgsYXWRiyLye7w3wwtSUTKFQfTfojdsvf+H2/ZvPtFhAkAMygfctjZKAOIuXEaSmHjwrbJwF4il+n4D7F5ppbLeah7HnKn4g/ZgFowwqZ6/b5rfI9yZNRUXDGp4FC6di2BNAkB572zRbBT5Ot9mx9xVg6g/t0s3+LLEs1LBFEWQatRR9oC6qUzGNKTnZ/d5254ngnYXSRaQEZT698cJQV7kvmg4";

    public static final String RSA_PRIVATE = isDebug?RSA_PRIVATE_DEV:RSA_PRIVATE_PRO;
    public static final String RSA_PUBLIC = "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDpo5K4AhZCPxFCU5SbTo6L7PFZ\n" +
            "wMPAEG7VIdEU/Fr/Cdtaq+KqZO+CmmfoXij+5kV5d3YXcMSirGQDvPqjmgktgazk\n" +
            "bKrEk1+TCdpKL4gviEL4Z3uHQ7eFzC0nPygeHYbuvB7A400wtCqnRS73zJzRwAb0\n" +
            "/PtbCfO2ddrBGXGdxQIDAQAB";
}
